home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / GXFonts.p < prev    next >
Text File  |  1996-05-01  |  7KB  |  109 lines

  1. {
  2.      File:        GXFonts.p
  3.  
  4.      Contains:    QuickDraw GX font routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT GXFonts;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __GXFONTS__}
  28. {$SETC __GXFONTS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC GXFontsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __CONDITIONALMACROS__}
  35. {$I ConditionalMacros.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __GXMATH__}
  38. {$I GXMath.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __GXTYPES__}
  41. {$I GXTypes.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __SCALERSTREAMTYPES__}
  44. {$I ScalerStreamTypes.p}
  45. {$ENDC}
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  52. FUNCTION GXNewFont(storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute): gxFont; C;
  53. FUNCTION GXGetFont(fontID: gxFont; VAR reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFontStorageTag; C;
  54. FUNCTION GXFindFont(storage: gxFontStorageTag; reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFont; C;
  55. PROCEDURE GXSetFont(fontID: gxFont; storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute); C;
  56. PROCEDURE GXDisposeFont(fontID: gxFont); C;
  57. PROCEDURE GXChangedFont(fontID: gxFont); C;
  58. FUNCTION GXGetFontFormat(fontID: gxFont): gxFontFormatTag; C;
  59. FUNCTION GXGetDefaultFont: gxFont; C;
  60. FUNCTION GXSetDefaultFont(fontID: gxFont): gxFont; C;
  61. FUNCTION GXFindFonts(familyID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; {CONST}VAR text: UInt8; index: LONGINT; count: LONGINT; VAR fonts: gxFont): LONGINT; C;
  62. FUNCTION GXCountFontGlyphs(fontID: gxFont): LONGINT; C;
  63. FUNCTION GXCountFontTables(fontID: gxFont): LONGINT; C;
  64. FUNCTION GXGetFontTable(fontID: gxFont; index: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  65. FUNCTION GXFindFontTable(fontID: gxFont; tableTag: gxFontTableTag; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  66. FUNCTION GXGetFontTableParts(fontID: gxFont; index: LONGINT; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  67. FUNCTION GXFindFontTableParts(fontID: gxFont; tableTag: gxFontTableTag; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  68. FUNCTION GXSetFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; length: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  69. FUNCTION GXSetFontTableParts(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; offset: LONGINT; oldLength: LONGINT; newLength: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  70. FUNCTION GXDeleteFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag): LONGINT; C;
  71. FUNCTION GXCountFontNames(fontID: gxFont): LONGINT; C;
  72. FUNCTION GXGetFontName(fontID: gxFont; index: LONGINT; VAR name: gxFontName; VAR platform: gxFontPlatform; VAR script: gxFontScript; VAR language: gxFontLanguage; VAR text: UInt8): LONGINT; C;
  73. FUNCTION GXFindFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; VAR text: UInt8; VAR index: LONGINT): LONGINT; C;
  74. FUNCTION GXSetFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; {CONST}VAR text: UInt8): LONGINT; C;
  75. FUNCTION GXDeleteFontName(fontID: gxFont; index: LONGINT; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  76. FUNCTION GXNewFontNameID(fontID: gxFont): gxFontName; C;
  77. FUNCTION GXCountFontEncodings(fontID: gxFont): LONGINT; C;
  78. FUNCTION GXGetFontEncoding(fontID: gxFont; index: LONGINT; VAR script: gxFontScript; VAR language: gxFontLanguage): gxFontPlatform; C;
  79. FUNCTION GXFindFontEncoding(fontID: gxFont; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  80. FUNCTION GXApplyFontEncoding(fontID: gxFont; index: LONGINT; VAR length: LONGINT; {CONST}VAR text: UInt8; count: LONGINT; VAR glyphs: INTEGER; VAR was16Bit: CHAR): LONGINT; C;
  81. FUNCTION GXCountFontVariations(fontID: gxFont): LONGINT; C;
  82. FUNCTION GXFindFontVariation(fontID: gxFont; variationTag: gxFontVariationTag; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): LONGINT; C;
  83. FUNCTION GXGetFontVariation(fontID: gxFont; index: LONGINT; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): gxFontVariationTag; C;
  84. FUNCTION GXCountFontInstances(fontID: gxFont): LONGINT; C;
  85. FUNCTION GXGetFontInstance(fontID: gxFont; index: LONGINT; VAR variation: gxFontVariation): gxFontName; C;
  86. FUNCTION GXSetFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName; {CONST}VAR variation: gxFontVariation): LONGINT; C;
  87. FUNCTION GXDeleteFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName): LONGINT; C;
  88. FUNCTION GXCountFontDescriptors(fontID: gxFont): LONGINT; C;
  89. FUNCTION GXGetFontDescriptor(fontID: gxFont; index: LONGINT; VAR descriptorValue: Fixed): gxFontDescriptorTag; C;
  90. FUNCTION GXFindFontDescriptor(fontID: gxFont; descriptorTag: gxFontDescriptorTag; VAR descriptorValue: Fixed): LONGINT; C;
  91. FUNCTION GXSetFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag; descriptorValue: Fixed): LONGINT; C;
  92. FUNCTION GXDeleteFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag): LONGINT; C;
  93. FUNCTION GXCountFontFeatures(fontID: gxFont): LONGINT; C;
  94. FUNCTION GXGetFontFeature(fontID: gxFont; index: LONGINT; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; VAR settings: gxFontFeatureSetting; VAR feature: gxFontFeature): gxFontName; C;
  95. FUNCTION GXFindFontFeature(fontID: gxFont; feature: gxFontFeature; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; VAR settings: gxFontFeatureSetting; VAR index: LONGINT): gxFontName; C;
  96. FUNCTION GXGetFontDefaultFeatures(fontID: gxFont; VAR features: gxRunFeature): LONGINT; C;
  97. PROCEDURE GXFlattenFont(source: gxFont; VAR stream: scalerStream; VAR block: gxSpoolBlock); C;
  98. {$ENDC}
  99. {$ALIGN RESET}
  100. {$POP}
  101.  
  102. {$SETC UsingIncludes := GXFontsIncludes}
  103.  
  104. {$ENDC} {__GXFONTS__}
  105.  
  106. {$IFC NOT UsingIncludes}
  107.  END.
  108. {$ENDC}
  109.